﻿@model Sovigaz.Report.ReportBase
@Html.DevExpress().ReportViewer(settings =>
{
    settings.Name = "documentViewer1";
    settings.Report = Model;
    // Callback and export route values specify corresponding controllers and their actions. 
    // These settings are also required.  
    settings.ShowLoadingPanelImage = true;
    settings.PageByPage = true;
    settings.CallbackRouteValues = new { Controller = "Report", Action = ViewBag.DocumentViewer.ToString() };
    settings.ExportRouteValues = new { Controller = "Report", Action = ViewBag.ExportViewer.ToString() };
}).GetHtml()